<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>天众云仓</title>
<script type="text/javascript" src="__PUBLIC__/js/jquery-2.2.0.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
<link href="__PUBLIC__/css/member.css" rel="stylesheet" />
</head>

<body>
<!--header-->
<div class="warp_top">
  <div class="top">
    <div class="top_logo"><img src="__PUBLIC__/member_img/logo.png" /></div>
    <div class="top_fonts">
      <h4>天众云仓-仓储端管理系统</h4>
      <p>Teams YunCang - warehouse management system</p>
    </div>
    <div class="clear"></div>
  </div>
</div>
<!--header-->
<!--main-->
<div class="mainbg">
  <div class="main_center">
    <div class="main_cimg"><img src="__PUBLIC__/member_img/login01.png" /></div>
      <div class="main_cwarp">
        <img src="__PUBLIC__/member_img/login02.png" class="mani_clpic" />
        <div class="main_clogin">
          <div class="main_logint">用户登录&nbsp;|&nbsp;<span>User Login</span></div>
          <div class="main_input">
            <div class="main_inimg"><img src="__PUBLIC__/member_img/login07.png" /></div>
            <!-- <input type="text" name="username" value="" /> -->
			<input class="input1" type="text" name="username" onkeydown="KeyDown()">
            <div class="clear"></div>
          </div>
          
          <div class="main_input">
            <div class="main_inimg"><img src="__PUBLIC__/member_img/login08.png" /></div>
            <!-- <input type="text" name="username" value="" /> -->
			<input class="input1" type="password" name="password" onkeydown="KeyDown()">
            <div class="clear"></div>
          </div>
          
          <div class="main_yan">
            <input type="text" name="verify" value="验证码" onkeydown="KeyDown()" style="float:left;"  onfocus="if(this.value=='验证码') {this.value='';}this.style.color='#fff';" onblur="if(this.value=='') {this.value='验证码';this.style.color='#fff';}">
			<img id="verify" src="./verify" style="float:left;height:40px;" onclick="javascript:this.src='./verify/'+Math.random();" />
            <div class="clear"></div>
            </div>
            
            <div class="main_button">
            <button class="zhuce regbutton">注册</button>
            <button class="denlu loginbutton">登录</button>
            <div class="clear"></div>
           </div>
            
          </div>
        </div>
        <div class=" clear"></div>
       </div>
    <div class="clear"></div>
  </div>

<!--main-->
<!--bottom-->
<div class="bottom_warp">
  <div class="bottom_main">
    <img src="__PUBLIC__/member_img/login04.png" /><span>新手指引</span>
  </div>
  <div class="bottom_main bottom_m2">
    <img src="__PUBLIC__/member_img/login05.png" /><span>无法登录？请点此查看帮助</span>
  </div>
  <div class="bottom_main bottom_m3">
    <img src="__PUBLIC__/member_img/login06.png" /><span>客服中心</span>
  </div>
  <div class="clear"></div>
  
  <p class="fcopy">▪&nbsp;&nbsp;copyright © 天众科技&nbsp;&nbsp;▪</p>
  <div class="clear"></div>
</div>
<!--bottom-->

<script>
	function KeyDown()
	{
	  if (event.keyCode == 13)
	  {
	    $(".loginbutton").click();
	  }
	}
	$(".regbutton").click(function(){
		location.href='__CONTROLLER__/register';
	})
    $(".loginbutton").click(function (){
        $.post('__MODULE__/Reg/loginD',{
            username:$("input[name=username]").val(),
            password:$("input[name=password]").val(),
            verify:$("input[name=verify]").val(),
        },function(msg){
            $("#verify").prop('src','__CONTROLLER__/verify/'+Math.random());
            layer.msg(msg.data);
            if(msg.flag==1){
                setTimeout(function (){
                    location.href='__MODULE__/Index/index';
                },800);
            }
        },'json');
    });
</script>
</body>
</html>
